package main

import "fmt"

type Movie interface {
	See()
}

type Music interface {
	Listen()
}

type MobilePhone interface {
	Movie
	Music
	Call()
}

type XiaoMiPhone struct{ name string }

func (x *XiaoMiPhone) See() {
	fmt.Println(x.name, "看电影")
}

func (x *XiaoMiPhone) Listen() {
	fmt.Println(x.name, "听音乐")
}

func (x *XiaoMiPhone) Call() {
	fmt.Println(x.name, "打电话")
}

func main() {
	phone := XiaoMiPhone{"小米10"}
	phone.Call()
	phone.See()
	phone.Listen()
}
